home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 5884 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: ix-sea9-23.ix.netcom.com!user
  2. From: jrashmun@ix.netcom.com (Wendy Ashmun)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: c++ class : describe for  a novice
  5. Date: Tue, 06 Feb 1996 20:59:44 -0800
  6. Organization: Netcom
  7. Message-ID: <jrashmun-0602962059440001@ix-sea9-23.ix.netcom.com>
  8. References: <4f2h0k$l17@unix.sbu.ac.uk>
  9. NNTP-Posting-Host: ix-sea9-23.ix.netcom.com
  10. X-NETCOM-Date: Tue Feb 06  8:59:22 PM PST 1996
  11.  
  12. In article <4f2h0k$l17@unix.sbu.ac.uk>, John Glavey <glavey@vax.sbu.ac.ik>
  13. wrote:
  14.  
  15. >  Hi, 
  16. >  
  17. >  I am currently trying to parse a c++ class and extract its contents
  18. >  and pipe it out to a vrml ( 3d environment ) .
  19. >  
  20. >  My problem being, what constitutes a c++ class.
  21. >  
  22. >  The approach I am taking is properties like
  23. >  
  24. >  inheritance
  25. >  baseclassspecifier etc
  26. >  
  27. >  I am not very familiar with c++ and would appreciate any suggestions, 
  28. >  comments, advice.
  29. >  
  30. >  I have a c++ class browser, to start the ball rolling.
  31. >  
  32. >  Thanking in advance.
  33. >  
  34. >  John Glavey
  35. >  South Bank University.
  36. >  London.
  37.  
  38. Speaking (fairly) strictly, a class is what is defined by a class definition.
  39. It's a description provided to the C++ compiler by the program developer of
  40. the way to create, talk to, and destroy a certain kind of object.  Are you
  41. reading C++ source files to parse a class?
  42. Maybe you're trying to extract the contents of an object and pipe them out.
  43. Probably the best way to do this is to extend the class definition so that
  44. you can tell the object to send its contents (in a way that will make sense
  45. to the vrml.  That's a virtual reality m? l?
  46. If you can't change the class definition, for whatever reasons, perhaps you
  47. can derive a class from the one you can't change, adding the extraction and
  48. sending to your new class.
  49. I hope this helps.
  50.  
  51. Wendy
  52. jrashmun@ix.netcom.com
  53.